package com.entity;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.entity.*;

public class Test {
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
		CustomerDAO customerDAO = (CustomerDAO) ctx.getBean("CustomerDAO");
		Customer cust = new Customer();
		cust.setAccount("SPRING2");
		cust.setPassword("SPRING2");
		customerDAO.save(cust);      
	}
}
